package cn.yunhe.bean;

public class Ticket  {
    private int id;
    private int sceid;
    private int userid;
    private int ticketcount;
    private int sum;
    private Scenery scenery = new Scenery();
    private User user = new User();

    public Ticket() {
    }

    public Ticket(int sum) {
        this.sum = sum;
    }

    public Ticket(int id, int sceid, int userid, int ticketcount, int sum, Scenery scenery, User user) {
        this.id = id;
        this.sceid = sceid;
        this.userid = userid;
        this.ticketcount = ticketcount;
        this.sum = sum;
        this.scenery = scenery;
        this.user = user;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSceid() {
        return sceid;
    }

    public void setSceid(int sceid) {
        this.sceid = sceid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getTicketcount() {
        return ticketcount;
    }

    public void setTicketcount(int ticketcount) {
        this.ticketcount = ticketcount;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public Scenery getScenery() {
        return scenery;
    }

    public void setScenery(Scenery scenery) {
        this.scenery = scenery;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
